package com.itheima.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <h1>组织Dto</h1>
 *
 * @author <a href="515857087@qq.com">叶世铭</a>
 * @since 2022/12/3
 */
@Data
@ApiModel(value = "组织Dto")
public class OrganizationDto implements Serializable {

    private static final long serialVersionUID = 8852094446893535598L;

    /**
     * 组织id
     */
    @ApiModelProperty(value = "组织id", required = true)
    @NotNull(message = "未选择组织")
    private Integer organizationId;

    /**
     * 组织名称
     */
    @ApiModelProperty(value = "组织名称", required = true)
    @NotNull(message = "未输入组织名称")
    private String name;
}
